Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add performance metrics for signature requests #26967

Merged
merged 25 commits into from
Sep 26, 2024

Conversation

OGPoyraz
Copy link
Member

@OGPoyraz OGPoyraz commented Sep 6, 2024

Description

  • Adds Signature traces
  • Wraps newUnsignedTypedMessage in a utility function, adds end of Middleware trace and Signature trace after hash is returned from background.

Note that this PR still using a preview will be updated once core is released.

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/2902

Manual testing steps

No QA needed.

Screenshots/Recordings

An example Sentry trace for Signature https://metamask.sentry.io/performance/trace/53446691f4d44d40a5f9de82f1cebd05/?fov=0%2C4381.00004196167&node=txn-d4053774d6c2495b8564fdce1fac8bec&pageEnd&pageStart&project=273496&source=traces&statsPeriod=15m&timestamp=1725629491.052

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@github-actions github-actions bot added the team-confirmations Push issues to confirmations team label Sep 6, 2024
Copy link

socket-security bot commented Sep 6, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@OGPoyraz OGPoyraz marked this pull request as ready for review September 6, 2024 13:33
@OGPoyraz OGPoyraz requested review from a team as code owners September 6, 2024 13:33
@OGPoyraz OGPoyraz force-pushed the feat/signature-performance-traces-implementation branch from eb7bb6c to 2eae7c7 Compare September 9, 2024 09:16
Copy link

socket-security bot commented Sep 17, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/[email protected] None 0 184 kB metamaskbot

🚮 Removed packages: npm/@metamask/[email protected]

View full report↗︎

Copy link

@OGPoyraz OGPoyraz force-pushed the feat/signature-performance-traces-implementation branch from c8c1757 to 0bf8712 Compare September 19, 2024 11:13
matthewwalsh0
matthewwalsh0 previously approved these changes Sep 19, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [2d743ac]
Page Load Metrics (1860 ± 65 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16062172185714067
domContentLoaded15972119182813163
load16062174186013565
domInteractive15190453617
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.3 KiB (0.06%)
  • ui: 182 Bytes (0.00%)
  • common: 201 Bytes (0.00%)

matthewwalsh0
matthewwalsh0 previously approved these changes Sep 24, 2024
Co-authored-by: Vinicius Stevam <[email protected]>
vinistevam
vinistevam previously approved these changes Sep 24, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [f08fdb2]
Page Load Metrics (2036 ± 118 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23725931941462222
domContentLoaded172725481987234112
load173725922036246118
domInteractive156334126
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.3 KiB (0.06%)
  • ui: 182 Bytes (0.00%)
  • common: 201 Bytes (0.00%)

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
65.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@metamaskbot
Copy link
Collaborator

Builds ready [5ccb223]
Page Load Metrics (1862 ± 92 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16762342186119493
domContentLoaded16672299183718991
load16892347186219292
domInteractive15108432311
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.32 KiB (0.06%)
  • ui: 182 Bytes (0.00%)
  • common: 201 Bytes (0.00%)

@OGPoyraz OGPoyraz merged commit f36a831 into develop Sep 26, 2024
76 of 77 checks passed
@OGPoyraz OGPoyraz deleted the feat/signature-performance-traces-implementation branch September 26, 2024 10:12
@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2024
@metamaskbot metamaskbot added the release-12.6.0 Issue or pull request that will be included in release 12.6.0 label Sep 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.6.0 Issue or pull request that will be included in release 12.6.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants